﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Menu_Item_Project
{
    class Snack : MenuItem
    {
        private int Price { get; set; }
        private string Name { get; set; }


        public Snack( string name, int price) : base(name)
        {
            Price = price;
            Name = name;
           
        }

        override public void PrinttoConsole()
        {
            Console.WriteLine("{0}  -  price- {1}  $;  ", Name, Price);
        }




    }
}
